using System;
using Agatha.Common;

namespace Source.Common
{
    [Serializable]
    public abstract class ResponseWithValidationSummary : Response
    {
        private ValidationSummary validationSummary;

        public ValidationSummary ValidationSummary
        {
            get
            {
                if (validationSummary == null)
                {
                    validationSummary = new ValidationSummary();
                }

                return validationSummary;
            }
            set
            {
                validationSummary = value;
            }
        }
    }
}